package com.mo.axion.support.dao;

import com.mo.axion.support.domain.SmsRecord;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author Mo
 * @createTime 2024/1/24 0:40
 * @descripiton 短信记录Dao
 */
public interface SmsRecordDao extends CrudRepository<SmsRecord, Long> {
    /**
     * 通过日期和手机号找到发送记录
     * @param phone 手机号
     * @param sendDate 日期
     * @return
     */
    List<SmsRecord> findByPhoneAndSendDate(Long phone, Integer sendDate);
}
